<template>
 <div>
<table border="0">
    <tr>
        <td v-for="(items) in tableData">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in b">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData1">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in bb">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData2">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in bbb">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
  </table>
 </div>
</template>
<script>
export default {
  props: [
  "b",
  "bb",
  "bbb"
  ],
  data () {
    return {
        tableData:[
          {
            name:"采集超时",//720896
            value:0
          },
          {
            name:" 排气温度1报警",//720902
            value:1
          },
          {
            name:"盘管冻结1报警",//720903
            value:1
          },
          {
            name:"高温报警",//720905
            value:1
          },
          {
            name:"低温报警",//720906
            value:0
          }
        ],
        tableData1:[
          {
            name:"高湿报警 ",//720907
            value:1
          },
          {
            name:"低湿报警",//720908
            value:0
          },
          {
            name:"电源丢失报警",//720916
            value:0
          },
          {
            name:"电源过欠压报警",//720917
            value:0
          },
          {
            name:"电源缺相报警",//720920
            value:0
          }
        ],
        tableData2:[
          {
            name:"电源故障报警",//720934
            value:0
          },
          {
            name:"传感器板丢失报警",//720935
            value:0
          },
          {
            name:"短周期1报警",//720936
            value:0
          },
          {
            name:"通讯故障报警",//720937
            value:0
          },
          {
            name:"加湿器故障报警",//720938
            value:0
          }
        ]
    }
  },
  computed: {
  },
  methods: {
    closeMyself () {
      this.$emit('on-close')
    }
  }
}
</script>
<style scoped>
table{
  width: 100%;
  border-collapse:collapse;
  border-top:1px solid #f2f2f2;
}
table td{
  max-width: 100px;
  height: 30px;
  text-align: center;
  border: 0px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  border-right:1px solid #f2f2f2;
}
table tr{
  height: 30px;
  overflow: hidden;
  border-bottom:1px solid #f2f2f2;
  border-left:1px solid #f2f2f2;
}
.btn-box{
  width:13px;
  height:13px;
  border-radius: 50%;
  background: #13ce66;
  box-shadow: 2px 2px 3px #bfbeb8;
  margin: auto;
}
.btn_active{
  background: #ff4949;
}
</style>
